serializeEntry
Serializes either the provided input or stored value to a TomlElement
If the input is not null, it should be serialized, otherwise the stored value of this serializer (or a fallback value) should be serialized. Serialization of the correct type should occur either way.
Return
validation result wrapping a TomlElement with the serialized result.
Author
fzzyhmstrs
Since
0.7.0
Parameters
input
T, nullable. The optional external value to serialize
errorBuilder
ValidationResult.ErrorEntry.Mutable for appending error messages. Serialization should fail soft, returning a fallback TomlElement or TomlNull as a last resort instead of crashing. Problems should be appended to the builder.
flags
serialization flags for passing to built in serialization methods as needed.